//
//  warningDetailCell.m
//  WHB_logist
//
//  Created by 徐国庆 on 15/12/3.
//  Copyright (c) 2015年 turing. All rights reserved.
//

#import "warningDetailCell.h"

@implementation warningDetailCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.timeLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.timeLabel];
        
        self.bottomView = [[UIView alloc] init];
        self.bottomView.backgroundColor = [UIColor whiteColor];
        self.bottomView.layer.borderWidth = 0.5;
        self.bottomView.layer.masksToBounds = YES;
        self.bottomView.layer.cornerRadius = 4;
        [self.contentView addSubview:self.bottomView];
        
        self.contentLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.contentLabel];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.timeLabel.frame = CGRectMake((self.contentView.frame.size.width - 150) / 2, 10, 150, 20) ;
    self.bottomView.frame = CGRectMake(13, CGRectGetMaxY(self.timeLabel.frame) + 10, self.contentView.frame.size.width - 26, 60);
    self.contentLabel.frame = CGRectMake(25, CGRectGetMaxY(self.timeLabel.frame) + 10.5, self.contentView.frame.size.width - 50, 59);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
